package com.ruoyi.project.cms.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.framework.aspectj.lang.annotation.Excel;
import com.ruoyi.framework.web.domain.BaseEntity;
import java.util.Date;

/**
 * 行政区划对象 t_cms_area
 * 
 * @author ruoyi
 * @date 2020-10-13
 */
public class CmsArea extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** ID */
    private Long id;

    /** 名称 */
    @Excel(name = "名称")
    private String areaName;

    /** 编码 */
    @Excel(name = "编码")
    private String areaCode;

    /** 级别 1省级；2市级；3县级；4乡镇街道 */
    @Excel(name = "级别 1省级；2市级；3县级；4乡镇街道")
    private Integer areaLevel;

    /** 父编码 */
    @Excel(name = "父编码")
    private String parentCode;

    /** 层级定位 */
    @Excel(name = "层级定位")
    private String areaPath;

    /** 乐观锁 */
    @Excel(name = "乐观锁")
    private Long revision;

    /** 是否启用  0未启用   1已启用 */
    @Excel(name = "是否启用  0未启用   1已启用")
    private Integer isEnable;

    /** 是否删除  0 未删除  1已删除 */
    @Excel(name = "是否删除  0 未删除  1已删除")
    private Integer isDel;

    /** 创建时间 */
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date gmtTime;

    /** 更新时间 */
    @Excel(name = "更新时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date updatedTime;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setAreaName(String areaName) 
    {
        this.areaName = areaName;
    }

    public String getAreaName() 
    {
        return areaName;
    }
    public void setAreaCode(String areaCode) 
    {
        this.areaCode = areaCode;
    }

    public String getAreaCode() 
    {
        return areaCode;
    }
    public void setAreaLevel(Integer areaLevel) 
    {
        this.areaLevel = areaLevel;
    }

    public Integer getAreaLevel() 
    {
        return areaLevel;
    }
    public void setParentCode(String parentCode) 
    {
        this.parentCode = parentCode;
    }

    public String getParentCode() 
    {
        return parentCode;
    }
    public void setAreaPath(String areaPath) 
    {
        this.areaPath = areaPath;
    }

    public String getAreaPath() 
    {
        return areaPath;
    }
    public void setRevision(Long revision) 
    {
        this.revision = revision;
    }

    public Long getRevision() 
    {
        return revision;
    }
    public void setIsEnable(Integer isEnable) 
    {
        this.isEnable = isEnable;
    }

    public Integer getIsEnable() 
    {
        return isEnable;
    }
    public void setIsDel(Integer isDel) 
    {
        this.isDel = isDel;
    }

    public Integer getIsDel() 
    {
        return isDel;
    }
    public void setGmtTime(Date gmtTime) 
    {
        this.gmtTime = gmtTime;
    }

    public Date getGmtTime() 
    {
        return gmtTime;
    }
    public void setUpdatedTime(Date updatedTime) 
    {
        this.updatedTime = updatedTime;
    }

    public Date getUpdatedTime() 
    {
        return updatedTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("areaName", getAreaName())
            .append("areaCode", getAreaCode())
            .append("areaLevel", getAreaLevel())
            .append("parentCode", getParentCode())
            .append("areaPath", getAreaPath())
            .append("revision", getRevision())
            .append("isEnable", getIsEnable())
            .append("isDel", getIsDel())
            .append("gmtTime", getGmtTime())
            .append("updatedTime", getUpdatedTime())
            .toString();
    }
}
